Skip to content

[Tests] Make test_full_upgrade less flaky - #4363

Merged
vicsn merged 3 commits into
stagingfrom
tests/flaky_test_full_upgrade
Aug 4, 2026
Merged

[Tests] Make test_full_upgrade less flaky#4363
vicsn merged 3 commits into
stagingfrom
tests/flaky_test_full_upgrade

Conversation

@ljedrz

@ljedrz ljedrz commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

The issue was that the height check polled the node being restarted. Now the script waits until the node is able to serve its REST API before making judgements about its stability.

In addition, the consensus version was never checked, and the max number of warnings was too low - it was now raised to the value used in another script, though the question of whether Received signature for an older batch is worthy of a WARN remains.

Fixes #4356.

ljedrz added 2 commits July 31, 2026 14:01
Signed-off-by: ljedrz <ljedrz@users.noreply.github.com>
Signed-off-by: ljedrz <ljedrz@users.noreply.github.com>
@ljedrz
ljedrz requested a review from vicsn July 31, 2026 12:13

@vicsn vicsn left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, @copilot can you enable that test (and disable the others) in CI?

Copilot AI commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

LGTM, @copilot can you enable that test (and disable the others) in CI?

Done in 09541f4test_partial_upgrade.sh has been removed from the run_upgrade_test CI command, leaving only test_full_upgrade.sh.

Copilot AI requested a review from vicsn July 31, 2026 12:28
Copilot finished work on behalf of vicsn July 31, 2026 12:28
@vicsn
vicsn force-pushed the tests/flaky_test_full_upgrade branch from 09541f4 to cef20ce Compare July 31, 2026 12:35
@ljedrz

ljedrz commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator Author

Rather than bumping the limits, I'd recommend retrying once ProvableHQ/snarkVM#3349 is merged (and used by snarkOS), at which point a lot fewer logs should be generated.

@ljedrz

ljedrz commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator Author

Confirmed locally that this test passes with current snarkVM.

@vicsn
vicsn merged commit 16d6f9a into staging Aug 4, 2026
5 of 6 checks passed
@vicsn
vicsn deleted the tests/flaky_test_full_upgrade branch August 4, 2026 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] upgrade-test failed

3 participants